<?php
namespace common\models\feedback;

use common\models\admin\Admin;
use common\models\Common;
use common\models\user\User;
use yii\helpers\ArrayHelper;

/**
 * 消息模板
 * Class MessageTemplate
 * @package common\models
 */
class FeedbackInfo extends Common
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%feedback_info}}';
    }

    public function getUser() {
        return $this->hasOne(User::className(), ['id' => 'user_id']);
    }


    public function getDealAdmin() {
        return $this->hasOne(Admin::className(), ['id' => 'deal_admin']);
    }

}


